package com.appwidge;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class TestActivity extends Activity{

	private final Activity activity = this;
	private Button btn_main;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.act_test);
		
		btn_main = (Button) findViewById(R.id.btn_main);
		btn_main.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(activity, MainActivity.class);
				startActivity(intent);
				finish();
			}
		});
	}
	
}
